package com.cjq.goods.service.impl;

import com.cjq.common.domain.Type;
import com.cjq.common.result.Result;
import com.cjq.goods.mapper.TypeMapper;
import com.cjq.goods.service.TypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeServiceImpl implements TypeService {
    @Autowired
    private TypeMapper typeMapper;

    @Override
    public Result<List<Type>> typeList() {
        List<Type> typeList = typeMapper.typeList();
        return Result.success(typeList);
    }
}
